package com.mediator.self;

public abstract class Appliance {

    public String name;

    public ApplianceMediator applianceMediator;

    public Appliance(String name, ApplianceMediator applianceMediator) {
        this.name = name;
        this.applianceMediator = applianceMediator;
    }

    public ApplianceMediator getApplianceMediator() {
        return applianceMediator;
    }

    public abstract void sendMessage(int messageType);
}
